package com.ysd.lis.entity.eq;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * <p>
 * 设备管理-设备类型
 * </p>
 *
 * @author prs
 * @since 2024-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EQ_RUNNING_RECORD")
public class EqRunningRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 运行单号
     */
    @TableField("RUNNING_NO")
    private String runningNo;

    /**
     * 设备id
     */
    @TableField("EQUIPT_ID")
    private String equiptId;

    /**
     * 设备编码
     */
    @TableField("EQUIPT_CODE")
    private String equiptCode;

    /**
     * 班次
     */
    @TableField("CLASSES")
    private String classes;

    /**
     * 开机人
     */
    @TableField("START_PERSON_ID")
    private String startPersonId;

    /**
     * 开机人
     */
    @TableField("START_PERSON_NAME")
    private String startPersonName;

    /**
     * 关机人
     */
    @TableField("SHUT_PERSON_ID")
    private String shutPersonId;

    /**
     * 关机人
     */
    @TableField("SHUT_PERSON_NAME")
    private String shutPersonName;



    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Timestamp startDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Timestamp endDate;


    /**
     * 运行状态
     */
    @TableField("RUNNING_STATUS")
    private String runningStatus;



    /**
     * 保养工时
     */
    @TableField("WORK_HOURS")
    private Integer workHours;

    /**
     * 保养工时
     */
    @TableField("PLAN_WORK_HOURS")
    private Integer planWorkHours;

    /**
     * 保养工时
     */
    @TableField("REAL_WORK_HOURS")
    private Integer realWorkHours;

    /**
     * 保养工时
     */
    @TableField("STOP_HOURS")
    private Integer stopHours;

    /**
     * 保养工时
     */
    @TableField("WORK_LOAD")
    private Integer workLoad;

    /**
     * 序号
     */
    @TableField("SEQ")
    private Integer seq;


    @TableField(exist = false)
    private String equiptName;
    @TableField(exist = false)
    private String specification;

}
